
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tuitionmanagement.entity;

import java.util.Date;

/**
 *
 * @author XUAN
 */
public class RateEntity {

    private int rateId;
    private float usd;
    private float vnd;
    private Date dateRate;
    private String lastError;

    public boolean validate() {
        return true;
    }

    /**
     * @return the usd
     */
    public RateEntity() {
        usd = 0;
        vnd = 0;
        dateRate = null;
    }

    public RateEntity(float _usd, float _vnd, Date _daterate) {
        this.usd = _usd;
        this.vnd = _vnd;
        this.dateRate = _daterate;
    }

    public float getUsd() {
        return usd;
    }

    /**
     * @param usd the usd to set
     */
    public void setUsd(float usd) {
        this.usd = usd;
    }

    /**
     * @return the vnd
     */
    public float getVnd() {
        return vnd;
    }

    /**
     * @param vnd the vnd to set
     */
    public void setVnd(float vnd) {
        this.vnd = vnd;
    }

    /**
     * @return the dateRate
     */
    public Date getDateRate() {
        return dateRate;
    }

    /**
     * @param dateRate the dateRate to set
     */
    public void setDateRate(Date dateRate) {
        this.dateRate = dateRate;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the rateId
     */
    public int getRateId() {
        return rateId;
    }

    /**
     * @param rateId the rateId to set
     */
    public void setRateId(int rateId) {
        this.rateId = rateId;
    }
}
